<?php
// connect to db
$link = mysql_connect(DB_SERVER_ADDRESS, DB_USER_NAME, DB_PASSWORD);
if (!$link) {
	die('Not connected : ' . mysql_error());
}
if (! mysql_select_db(DB_NAME) ) {
	die ('Can\'t use cip db: ' . mysql_error());
}